package com.ruoyi.kk.destination.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.kk.destination.mapper.KkHikingDestinationMapper;
import com.ruoyi.kk.destination.domain.KkHikingDestination;
import com.ruoyi.kk.destination.service.IKkHikingDestinationService;

/**
 * 徒步目的地信息Service业务层处理
 * 
 * @author kk
 * @date 2025-06-09
 */
@Service
public class KkHikingDestinationServiceImpl implements IKkHikingDestinationService 
{
    @Autowired
    private KkHikingDestinationMapper kkHikingDestinationMapper;

    /**
     * 查询徒步目的地信息
     * 
     * @param id 徒步目的地信息主键
     * @return 徒步目的地信息
     */
    @Override
    public KkHikingDestination selectKkHikingDestinationById(Long id)
    {
        return kkHikingDestinationMapper.selectKkHikingDestinationById(id);
    }

    /**
     * 查询徒步目的地信息列表
     * 
     * @param kkHikingDestination 徒步目的地信息
     * @return 徒步目的地信息
     */
    @Override
    public List<KkHikingDestination> selectKkHikingDestinationList(KkHikingDestination kkHikingDestination)
    {
        return kkHikingDestinationMapper.selectKkHikingDestinationList(kkHikingDestination);
    }

    /**
     * 新增徒步目的地信息
     * 
     * @param kkHikingDestination 徒步目的地信息
     * @return 结果
     */
    @Override
    public int insertKkHikingDestination(KkHikingDestination kkHikingDestination)
    {
        return kkHikingDestinationMapper.insertKkHikingDestination(kkHikingDestination);
    }

    /**
     * 修改徒步目的地信息
     * 
     * @param kkHikingDestination 徒步目的地信息
     * @return 结果
     */
    @Override
    public int updateKkHikingDestination(KkHikingDestination kkHikingDestination)
    {
        return kkHikingDestinationMapper.updateKkHikingDestination(kkHikingDestination);
    }

    /**
     * 批量删除徒步目的地信息
     * 
     * @param ids 需要删除的徒步目的地信息主键
     * @return 结果
     */
    @Override
    public int deleteKkHikingDestinationByIds(Long[] ids)
    {
        return kkHikingDestinationMapper.deleteKkHikingDestinationByIds(ids);
    }

    /**
     * 删除徒步目的地信息信息
     * 
     * @param id 徒步目的地信息主键
     * @return 结果
     */
    @Override
    public int deleteKkHikingDestinationById(Long id)
    {
        return kkHikingDestinationMapper.deleteKkHikingDestinationById(id);
    }
}
